package com.lx.design.demo.learning.liu.visitor;

/**
 * @author lx
 * @date 2021/3/1 16:48
 */
public class FullTimeEmployee implements Employee{

    private String name;
    private double weeklywage;
    private int workTime;

    public FullTimeEmployee(String name, double weeklywage, int workTime) {
        this.name = name;
        this.weeklywage = weeklywage;
        this.workTime = workTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getWeeklywage() {
        return weeklywage;
    }

    public void setWeeklywage(double weeklywage) {
        this.weeklywage = weeklywage;
    }

    public int getWorkTime() {
        return workTime;
    }

    public void setWorkTime(int workTime) {
        this.workTime = workTime;
    }

    @Override
    public void accept(Department department) {
        department.visit(this);
    }
}
